package com.vgulu.server.login.service;

import com.vgulu.server.login.bean.LoginBean;
import com.vgulu.server.login.repository.entity.Uid;

/**
 * Token接口
 * Created by wangchunsee on 16/10/4.
 */
public interface TokenService {
    /**
     * 设置token
     * @param uid
     * @param channel
     * @return ret ret[0] accessToken, ret[1] refreshToken
     */
    LoginBean setToken(Uid uid, String appId, String channel);

    /**
     * 验证Token,成功返回uid
     * @param accessToken
     * @return 成功返回uid
     */
    Uid tokenVerify(String accessToken);
}
